package io.renren.modules.vastFinance.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-05-23 12:11:18
 */
@Data
@TableName("tb_finance")
@EqualsAndHashCode
public class FinanceEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	@ExcelProperty("ID")
	private Integer finId;

	@ExcelProperty("标题内容")
	private String finname;

	@ExcelProperty("父类ID")
	private Integer parentId;

	@ExcelProperty("月份信息")
	private String months;

	@ExcelProperty("创建时间")
	private Data createTime;

	@ExcelProperty("修改时间")
	private Data updateTime;
	/**
	 * 判断是否有子节点
	 */
	@TableField(exist = false)
	@ExcelProperty("字段判断")
	private Boolean hasChildren;

}
